
import { FunctionComponent, useEffect } from "react"
import store from "../../store/store"

interface Props{
    title:string
}
export const MobxTestCom:FunctionComponent<Props>=(props)=>{
    const {personStore}=store
    useEffect(()=>{
        console.log(props,personStore)
    },[])
    return (
        <>
            <h1>{props.title}</h1>
            <h2>{personStore.jeck.dateOfBrth}</h2>
        </>
    )
}